package com.hrzyit.whistle.cases.injection.component

import com.hrzyit.base.injection.PreComponentScope
import com.hrzyit.base.injection.component.ActivityComponent
import com.hrzyit.whistle.cases.injection.module.CaseCenterModule
import com.hrzyit.whistle.cases.injection.module.UploadModule
import com.hrzyit.whistle.cases.ui.fragment.CaseInfoFragment
import com.hrzyit.whistle.cases.ui.fragment.RecordAudioFragment
import dagger.Component

/**
 * 案件详情服务模块 Component，用来管理模块下使用 Dagger2 依赖注入的 Fragment
 * @author YangWei
 * @date 2019/4/8
 */
@PreComponentScope
@Component(
    dependencies = [ActivityComponent::class],
    modules = [CaseCenterModule::class,
        UploadModule::class]
)
interface CaseInfoComponent {

    /**
     * 依赖注入: 案件详情 Fragment
     */
    fun inject(fragment: CaseInfoFragment)

    /**
     * 依赖注入: 新建案件-案件录音 Fragment
     */
    fun inject(fragment: RecordAudioFragment)
}